function loadBookRecommend(target)
{
	Packages.system.mlf.GateKeeper.updateDynamicPortlet(target._parent, "app/vo/BookRecommend.xml");
	dynamicPortletArr.bookInfo="bookRecommend";
}

function confirmBookRecommend()
{
	var obj:Object=new Object();
	obj.memberId=Packages.model.UserProfile.data.memberId+"";
	obj.bookId=Packages.model.Context.address.id+"";

	obj.reason=Packages.system.utils.TextUtil.getValue("recommendReasonValue", this._name);
	Packages.log("obj.reason: "+obj.reason, "debug");
	if (obj.reason=="")
	{
		Packages.modula.MessageCenter.send("TEXTINPUT_REQUIRED", 1, 0);
		return;
	}
	// Packages.log(this+".bookRecommendCreate...bookId="+obj.bookId+" memberId="+obj.memberId+" reason="+obj.reason); 
	var data:Object=new Object();
	// data.path=target._parent;
	data.name="BookSpecial";
	data.container="bookInfoContainer";
	data.oper="bookRecommendCreate";
	data.uri="app/content/bookPage/BookSpecial.xml";
	data.returnPath="loadBookSpecialInfo";
	data.dynamicPortlet=dynamicPortletArr.bookInfo;

	dynamicPortletArr.bookInfo="commonRemotingResult";

	Packages.modula.RequestCommand.request("REMOTING", "bookRecommendCreate", obj, Packages.model.vo.CommonRemotingResultView, "normal", this, data);
}

function onBookRecommendInit()
{
	//
	Packages.system.render.Transition.irisType1(Packages.system.mlf.GateKeeper.scanElement(this._name, "bookRecommend"));
	//
	var evtTargetArr:Array=new Array();
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "recommendConfirmSpot"));
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "recommendReturnSpot"));
	Packages.system.events.StateFulButtonEvent.initialize(evtTargetArr);
}